﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace DAMNETWebApplication.Controls
{
    public partial class ErrorDisplay : System.Web.UI.UserControl
    {
        public string SuccessText
        {
            set
            {
                outputLiteral.Text = value;
            }
        }

        public string ErrorText
        {
            set
            {
                outputLiteral.Text = value;
            }
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        /// <summary>
        /// 
        /// </summary>
        public void ClearError()
        {
            SuccessText = string.Empty;
            ErrorText = string.Empty;
        }
    }
}